package DP.decoration.common;

import DP.decoration.common.component.Component;
import DP.decoration.common.component.impl.ConcreteComponent;
import DP.decoration.common.decorator.impl.ConcreteDecorator1;
import DP.decoration.common.decorator.impl.ConcreteDecorator2;

/**
 * @author msi
 * 场景类
 */
public class Client {
    public static void main(String[] args) {
        Component component=new ConcreteComponent();
        component=new ConcreteDecorator1(component);
        component=new ConcreteDecorator2(component);
        component.operate();
    }
}
